V2EX  ›  英汉词典
Enqueued related words: Preprocessor, Code-Generation

Compile Time

定义 Definition

compile time:编译期;指程序从源代码被编译器处理(如语法分析、类型检查、优化、生成目标代码等)到生成可执行文件/中间产物的阶段。常与 runtime(运行时) 对比。(在某些语境中也会扩展包含链接等“构建期”步骤。)

发音 Pronunciation (IPA)

/kəmˈpaɪl taɪm/

例句 Examples

The error is caught at compile time.
这个错误在编译期就会被发现。

Using generics moves some checks from runtime to compile time, improving safety and performance.
使用泛型可以把一些检查从运行时提前到编译期,从而提高安全性和性能。

词源 Etymology

compile 源自拉丁语 compilare,有“汇编、整理”的含义,后来在计算机领域引申为“把源代码转换成机器可执行形式”的过程;time 表示“时间/时刻”。合起来 compile time 就是“进行编译这一阶段的时间/时段”,中文常译为“编译期/编译时”。

相关词 Related Words

文学与作品 Literary Works

  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”)
  • The C Programming Language(Kernighan & Ritchie)
  • The C++ Programming Language(Bjarne Stroustrup)
  • *Effective C++*(Scott Meyers)
  • ISO/IEC C++ 标准文档(涉及“compile-time constant / compile-time evaluation”等表述)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   833 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 20:29 · PVG 04:29 · LAX 12:29 · JFK 15:29
♥ Do have faith in what you're doing.